# Copyright 2014 The GTK+Android Developers. See the COPYRIGHT
# file at the top-level directory of this distribution and at
# https://github.com/eugals/GTKAndroid/wiki/COPYRIGHT.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# Author(s): Evgeny Sologubov
#

LOCAL_PATH := $(call my-dir)
export MY_JNI_PATH := $(LOCAL_PATH)
HEXCHAT_SOURCES_PATH := $(MY_JNI_PATH)/hexchat
#LOCAL_PATH:= $(HEXCHAT_SOURCES_PATH)/src

include $(CLEAR_VARS)

include $(HEXCHAT_SOURCES_PATH)/src/common/Sources.mk
include $(HEXCHAT_SOURCES_PATH)/src/fe-gtk/Sources.mk

LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog

HEXCHAT_SOURCES := $(addprefix hexchat/src/,$(HEXCHAT_SOURCES))
COMMON_SOURCES := $(addprefix hexchat/src/,$(COMMON_SOURCES))
LOCAL_MODULE    := gtka_test
LOCAL_SRC_FILES := main.c $(HEXCHAT_SOURCES) $(COMMON_SOURCES)
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(HEXCHAT_SOURCES_PATH) $(HEXCHAT_SOURCES_PATH)/src/common \
					$(HEXCHAT_SOURCES_PATH)/src/fe-gtk $(MY_JNI_PATH)/../../clibs/gtk/distsrc
LOCAL_CFLAGS += -DANDROID -DNDKGTK3 -DLOCALEDIR=\"$(localedir)\" -DDERAWE
                           
#LOCAL_STATIC_LIBRARIES := android_native_app_glue android_support
$(warning  " GTK_INCLUDES =  $(GTK_INCLUDES)")
include $(LOCAL_PATH)/../../clibs/gtk/build-gtk-shared-library.mk

#$(call import-module,android/support)
#$(call import-module,android/native_app_glue)

